<?php
	if($_POST['mode']!=0){
	require_once('../../includes/user.php');
	$user=new User();
?>
<link href="../../css/default.css" rel="stylesheet" type="text/css" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">

    <?php
	if($_POST['mode']==1){
	echo 'CETA Office Bearers';}
	elseif($_POST['mode']==2){
	echo 'CSI Office Bearers';}
	elseif($_POST['mode']==4){
	echo 'House';
	}
	elseif($_POST['mode']==3){
		$as_res=$user->query("select * from commitee_details where assign=1");
		while($as_row=mysql_fetch_array($as_res)){
	 ?>
      <tr>
        <td colspan="4" align="left" valign="middle" class="head">&nbsp;</td>
      </tr>
      <tr>
        <td width="7%" align="left" valign="middle" class="head">&nbsp;</td>
        <td colspan="3" align="left" valign="middle" class="head"><?php echo $as_row['commitee_name']; ?></td>
      </tr>
      <tr>
        <td colspan="4" align="right" valign="middle" class="head">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" align="right" valign="middle" class="profile">Convener :</td>
        <td width="2%">&nbsp;</td>
        <td width="52%" align="left" valign="middle"><?php 
		if($as_row['convener']!=0){
		$a_per=getUserProfile($as_row['convener']);
		echo $a_per['name'];
		}else{
			echo 'NA';
		} ?></td>
      </tr>
      <tr>
        <td colspan="2" align="right" valign="middle" class="profile">Co Convener :</td>
        <td>&nbsp;</td>
        <td align="left" valign="middle"><?php 
		if($as_row['coconvener']!=0){
		$a_per=getUserProfile($as_row['coconvener']);
		echo $a_per['name'];
		}else{
			echo 'NA';
		} ?></td>
      </tr>
      <tr>
        <td colspan="2" align="right" valign="middle" class="profile">Asst Co Convener :</td>
        <td>&nbsp;</td>
        <td align="left" valign="middle"><?php 
		if($as_row['ascoconvener']!=0){
		$a_per=getUserProfile($as_row['ascoconvener']);
		echo $a_per['name'];
		}else{
			echo 'NA';
		} ?></td>
      </tr>
      <tr>
        <td colspan="4" align="right" valign="middle" class="head">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" align="right" valign="middle" class="smartlink">&nbsp;</td>
        <td colspan="2"><span class="smartlink">Change</span></td>
      </tr>
      <?php }
	  }?>
    </table>
<?php
	}
?>